#pragma once
class CHtmlEditor;
class ihtml_event_handler
{
public:
	ihtml_event_handler(void){}
	virtual ~ihtml_event_handler(void){}

	virtual void on_loading_finished(CHtmlEditor* p) = 0;
	virtual void on_update_ui(CHtmlEditor* p) = 0;
	virtual LRESULT on_wnd_event(CHtmlEditor* p, UINT message, WPARAM wParam, LPARAM lParam) = 0;
	virtual BOOL pre_translate_message(CHtmlEditor* p, MSG* msg) = 0;
	virtual BOOL on_navigate_complete2(CHtmlEditor* p) = 0;
	virtual void on_before_navigate2(CHtmlEditor* p, LPCTSTR url, DWORD flags, 
		LPCTSTR target_frame, CByteArray&   posted_data, LPCTSTR headers, BOOL *cancel) = 0;
};
